var loadIndex = null;

// 由iframe调用开启loading
function load(shade = 0.6) {
    loadIndex = layer.load(2, {
        time: 30 * 1000,
        shade: [shade, '#fff']
    });
}

// 由iframe调用关闭loading
function close() {
    layer.close(loadIndex);
}

export default {
    load,
    close
}
